/*
 * @Date: 2022-02-18 09:54:49
 * @Author: 陶子
 * @LastEditTime: 2022-11-08 10:55:33
 * @FilePath: \jk_one-stop_pc\src\views\workManagement\workOrder\allColumn.js
 * @pageName: 这是--(生产工单所有的列)--页面
 */
export let columns = [
  {
    title: '工单编号',
    dataIndex: 'orderCode',
    ellipsis: true,
    align: 'left',
    fixed: 'left',
    width: 200,
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'orderCode',
    },
  },
  {
    title: '物品编号',
    dataIndex: 'serialNumber',
    ellipsis: true,
    width: 200,
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'serialNumsber',
    },
  },
  {
    title: '物品名称',
    dataIndex: 'serialName',
    ellipsis: true,
    width: 200,
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'serialName',
    },
  },
  {
    title: '规格',
    dataIndex: 'serialSpecifications',
    ellipsis: true,
    width: 200,
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'serialSpecifications',
    },
  },
  {
    title: '状态',
    dataIndex: 'orderStatus',
    ellipsis: true,
    width: 200,
    scopedSlots: {
      filterDropdown: 'selectDropdown',
      filterIcon: 'selectIcon',
      customRender: 'orderStatusText',
    },
  },
  {
    title: '生产进度',
    dataIndex: 'orderStatusList',
    ellipsis: true,
    width: 600,
    scopedSlots: {
      customRender: 'orderStatusList',
    },
  },
  {
    title: '单位',
    dataIndex: 'unitName',
    ellipsis: true,
    width: 200,
  },
  {
    title: '计划生产数量',
    dataIndex: 'planProduceNum',
    ellipsis: true,
    width: 200,
  },
  {
    title: '计划时间',
    dataIndex: 'timePeriod',
    ellipsis: true,
    width: 200,
  },
  // {
  //   title: '已生产数量',
  //   dataIndex: 'goodsName',
  //   ellipsis: true,
  //   width: 200,
  // },
  {
    title: '已生产数量',
    dataIndex: 'qualifiedNumEnd',
    ellipsis: true,
    width: 200,
  },
  {
    title: '关联订单',
    dataIndex: 'sellOrderCode',
    ellipsis: true,
    width: 200,
  },
  {
    title: '创建时间',
    dataIndex: 'createTime',
    ellipsis: true,
    width: 200,
    sorter: true,
    scopedSlots: {
      customRender: 'createTime',
    },
  },
  {
    title: '更新时间',
    dataIndex: 'updateTime',
    ellipsis: true,
    width: 200,
    sorter: true,
    scopedSlots: {
      customRender: 'updateTime',
    },
  },
  {
    title: '创建人',
    dataIndex: 'createByText',
    ellipsis: true,
    width: 200,
    scopedSlots: {
      filterDropdown: 'selectPeople',
      filterIcon: 'selectIcon',
      customRender: 'createBy',
    },
  },
  {
    title: '更新人',
    dataIndex: 'updateByText',
    ellipsis: true,
    width: 200,
    scopedSlots: {
      filterDropdown: 'selectPeople',
      filterIcon: 'selectIcon',
      customRender: 'updateBy',
    },
  },
]
export let allColumn = [
  {
    title: '工单编号',
    dataIndex: 'orderCode',
    ellipsis: true,
    align: 'left',
    fixed: 'left',
    width: 200,
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'orderCode',
    },
  },
  {
    title: '物品编号',
    dataIndex: 'serialNumber',
    ellipsis: true,
    width: 200,
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'serialNumber',
    },
  },
  {
    title: '物品名称',
    dataIndex: 'serialName',
    ellipsis: true,
    width: 200,
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'serialName',
    },
  },
  {
    title: '规格',
    dataIndex: 'serialSpecifications',
    ellipsis: true,
    width: 200,
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'serialSpecifications',
    },
  },
  {
    title: '状态',
    dataIndex: 'orderStatus',
    ellipsis: true,
    width: 200,
    scopedSlots: {
      filterDropdown: 'selectDropdown',
      filterIcon: 'selectIcon',
      customRender: 'orderStatusText',
    },
  },
  {
    title: '生产进度',
    dataIndex: 'orderStatusList',
    ellipsis: true,
    width: 400,
    scopedSlots: {
      customRender: 'orderStatusList',
    },
  },
  {
    title: '单位',
    dataIndex: 'unitName',
    ellipsis: true,
    width: 200,
  },
  {
    title: '计划生产数量',
    dataIndex: 'planProduceNum',
    ellipsis: true,
    width: 200,
  },
  {
    title: '计划时间',
    dataIndex: 'timePeriod',
    ellipsis: true,
    width: 200,
  },
  // {
  //   title: '已生产数量',
  //   dataIndex: 'goodsName',
  //   ellipsis: true,
  //   width: 200,
  // },
  {
    title: '已生产数量',
    dataIndex: 'qualifiedNumEnd',
    ellipsis: true,
    width: 200,
  },
  {
    title: '关联订单',
    dataIndex: 'sellOrderCode',
    ellipsis: true,
    width: 200,
  },
  {
    title: '创建时间',
    dataIndex: 'createTime',
    ellipsis: true,
    width: 200,
    sorter: true,
    scopedSlots: {
      customRender: 'createTime',
    },
  },
  {
    title: '更新时间',
    dataIndex: 'updateTime',
    ellipsis: true,
    width: 200,
    sorter: true,
    scopedSlots: {
      customRender: 'updateTime',
    },
  },
  {
    title: '创建人',
    dataIndex: 'createByText',
    ellipsis: true,
    width: 200,
    scopedSlots: {
      filterDropdown: 'selectPeople',
      filterIcon: 'selectIcon',
      customRender: 'createBy',
    },
  },
  {
    title: '更新人',
    dataIndex: 'updateByText',
    searchIndex: 'updateByText',
    ellipsis: true,
    width: 200,
    scopedSlots: {
      filterDropdown: 'selectPeople',
      filterIcon: 'selectIcon',
      customRender: 'updateBy',
    },
  },
]
export let outopenItcolumns = [
  {
    title: '订单编号',
    width: 180,
    ellipsis: true,
    dataIndex: 'orderCode',
    searchIndex: 'orderCode',
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'orderCode',
    },
  },
  {
    title: '工单数',
    width: 150,
    ellipsis: true,
    searchIndex: 'produceInfoCount',
    dataIndex: 'produceInfoCount',
    scopedSlots: {},
  },
  {
    title: '物品种类',
    width: 120,
    ellipsis: true,
    searchIndex: 'serialInfoCount',
    dataIndex: 'serialInfoCount',
    scopedSlots: {},
  },
  {
    title: '客户',
    width: 120,
    ellipsis: true,
    dataIndex: 'customName',
    searchIndex: 'customName',
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'customName',
    },
  },
  {
    title: '创建时间',
    width: 200,
    ellipsis: true,
    dataIndex: 'createTime',
    sorter: true,
    scopedSlots: {
      // filterDropdown: 'searchDropdown',
      // filterIcon: 'searchIcon',
      // customRender: 'customName',
    },
  },
  {
    title: '更新时间',
    width: 250,
    ellipsis: true,
    dataIndex: 'updateTime',
    sorter: true,
    searchIndex: 'updateTime',
    scopedSlots: {
      // filterDropdown: 'searchDropdown',
      // filterIcon: 'searchIcon',
      // customRender: 'customName',
    },
  },
  {
    title: '创建人',
    dataIndex: 'createByName',
    ellipsis: true,
    width: 180,
    searchIndex: 'createBys',
    scopedSlots: {
      filterDropdown: 'selectPeople1',
      filterIcon: 'dateIcon',
      customRender: 'createByName',
    },
  },
  {
    title: '更新人',
    dataIndex: 'updateByName',
    ellipsis: true,
    width: 180,
    searchIndex: 'updateBys',
    scopedSlots: {
      filterDropdown: 'selectPeople2',
      filterIcon: 'dateIcon',
      customRender: 'updateByName',
    },
  },
]
